<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>

<h2 class="contentTitle">修改用户</h2>
<form method="post" action="${ctx}/user/update" class="required-validate pageForm" onsubmit="return validateCallback(this, dialogAjaxDone);">
	<input type="hidden" name="id" value="${user.id}"/>
	<div class="pageFormContent" layoutH="97">
		<p>
			<label>登录名称:</label>
			<input type="text" name="strAccount" class="required" size="20" maxlength="32" readonly="readonly" value="${user.strAccount }"/>
		</p>
		<p>
			<label>真实名字:</label>
			<input type="text" name="strName" class="required" size="20" maxlength="32" readonly="readonly" value="${user.strName }"/>
		</p>		
		<p>
			<label>电话:</label>
			<input type="text" name="strPhone" class="phone" size="20" maxlength="64" value="${user.strPhone }"/>
		</p>
		<p>
			<label>用户邮箱:</label>
			<input type="text" name="strEmail" class="email" size="20" maxlength="128" value="${user.strEmail }"/>
		</p>		
		<p>
			<label>用户状态:</label>
			<select name="strStatus">
				<option value="enabled" ${user.strStatus == "enabled" ? 'selected="selected"' : ''}>可用</option>
				<option value="disabled" ${user.strStatus == "disabled" ? 'selected="selected"' : ''}>不可用</option>
			</select>
		</p>
		<p>
			<label>关联组织:</label>
			<input name="dept.id" value="${user.dept.id }" type="hidden"/>
			<input class="required" name="dept.strName" type="text" readonly="readonly" value="${user.dept.strName }"/>
			<a class="btnLook" href="${ctx}/user/lookup2org" lookupGroup="dept" title="关联组织" width="400">查找带回</a>	
		</p>		
	</div>
			
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">确定</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</form>